home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / imap / ANSI / c-client / makefile.os2 < prev    next >
Makefile  |  1996-03-16  |  4KB  |  135 lines

  1. # Program:    C client makefile
  2. #
  3. # Author:    Mark Crispin
  4. #        Networks and Distributed Computing
  5. #        Computing & Communications
  6. #        University of Washington
  7. #        Administration Building, AG-44
  8. #        Seattle, WA  98195
  9. #        Internet: MRC@CAC.Washington.EDU
  10. #
  11. # Date:        14 March 1996
  12. # Last Edited:    16 March 1996
  13. #
  14. # Copyright 1996 by the University of Washington
  15. #
  16. #  Permission to use, copy, modify, and distribute this software and its
  17. # documentation for any purpose and without fee is hereby granted, provided
  18. # that the above copyright notice appears in all copies and that both the
  19. # above copyright notice and this permission notice appear in supporting
  20. # documentation, and that the name of the University of Washington not be
  21. # used in advertising or publicity pertaining to distribution of the software
  22. # without specific, written prior permission.  This software is made
  23. # available "as is", and
  24. # THE UNIVERSITY OF WASHINGTON DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
  25. # WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED
  26. # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN
  27. # NO EVENT SHALL THE UNIVERSITY OF WASHINGTON BE LIABLE FOR ANY SPECIAL,
  28. # INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  29. # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT
  30. # (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION
  31. # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  32.  
  33.  
  34. # Common macros
  35. CC=    gcc
  36. CP=    cp
  37. MAKE=    make
  38. MV=    mv
  39. RM=    rm -f
  40. OS=    os2
  41.  
  42.  
  43. # emx OMF format build
  44. # Used to build .dlls with data exports
  45. DEBUG=
  46. ZOMF=    -Zomf
  47. O=    .obj
  48. A=    .lib
  49. E=    .exe
  50. D=    .dll
  51. AR=    emxomfar r
  52. ZLIB=    -Zcrtdll
  53. ZOPT=    -O3 -fno-strength-reduce -mprobe
  54. ZDEF=    -DOS2 -DOMF
  55. .SUFFIXES: .c .obj .exe
  56.  
  57.  
  58. # emx AOUT format build
  59. # Useful for debugging with gdb
  60.  
  61. #DEBUG=    -g
  62. #ZOMF=
  63. #O=    .o
  64. #A=    .a
  65. #D=    .dll
  66. #E=    .exe
  67. #AR=    ar rus
  68. #ZLIB=    -Zcrtdll
  69. #ZOPT=    -O3 -fno-strength-reduce -mprobe
  70. #ZDEF=    -DOS2
  71. #.SUFFIXES: .c .o .exe
  72.  
  73.  
  74. .c$O: ; $(CC) $(ZOMF) $(CFLAGS) -c $<
  75.  
  76. EXTRADRIVERS=
  77. DRIVERS=    imap nntp bezrkdos tenexdos pop3 dawz dummy
  78. DEFAULTDRIVER=    dawz
  79. ARCHIVE=    c-client$A
  80. BINARIES=    mail$O bezrkdos$O imap2$O dawz$O tenexdos$O \
  81.         nntpcdos$O dummyos2$O smtp$O nntp$O misc$O rfc822$O \
  82.         pop3$O sm_dos$O newsrc$O os_$(OS)$O os2_link$O
  83. EXTRALDFLAGS=
  84. CFLAGS=        $(DEBUG) $(ZOPT) $(ZDEF)
  85. LDFLAGS=    $(ZOMF) $(ZLIB) $(DEBUG) -lsocket
  86.  
  87. all:        mtest$E
  88.  
  89. clean:
  90.         $(RM) *$O *$A *.dll linkage.* osdep.* os2_link.c mtest$E
  91.  
  92. mtest$E:    $(ARCHIVE) mtest$O
  93.         $(CC) $(CFLAGS) -o mtest$E mtest$O -L. -lc-client $(LDFLAGS)
  94.  
  95. $(ARCHIVE):    $(BINARIES) c-client.def
  96.         $(CC) -Zdll -o c-client$D $(BINARIES) c-client.def $(LDFLAGS)
  97.         emximp -o $(ARCHIVE) c-client.def
  98.  
  99. SRCS=        mail.h misc.h env.h fs.h ftl.h nl.h tcp.h \
  100.         env_os2.h tcp_dos.h \
  101.         os_$(OS).c env_unix.c fs_os2.c ftl_os2.c nl_dos.c tcp_dos.c
  102.  
  103. # OS-dependent module
  104. osdep$O:    $(SRCS)
  105.         $(CC) $(CFLAGS) -DSTDPROTO=$(STDPROTO) $(EXTRAOSDEFS) -c os_$(OS).c
  106.         $(MV) os_$(OS)$O osdep$O
  107.  
  108. linkage:
  109.         drivers.cmd $(DEFAULTDRIVER) $(EXTRADRIVERS) $(DRIVERS)
  110.         touch linkage
  111.  
  112. os2_link.c:     linkage
  113.  
  114. osdep.h:    os_$(OS).h linkage
  115.         $(RM) osdep.h
  116.         $(CP) os_$(OS).h osdep.h
  117.  
  118. # Dependencies
  119.  
  120. bezrkdos$O:    mail.h bezrkdos.h rfc822.h misc.h osdep.h
  121. dawz:        mail.h dawz.h rfc822.h misc.h dummy.h osdep.h
  122. dummyos2$O:    mail.h dummy.h misc.h osdep.h
  123. imap2$O:    mail.h imap2.h misc.h osdep.h
  124. mail$O:        mail.h misc.h osdep.h
  125. misc$O:        mail.h misc.h osdep.h
  126. mtest$O:    mail.h rfc822.h smtp.h nntp.h misc.h osdep.h
  127. newsrc$O:    mail.h newsrc.h misc.h osdep.h
  128. nntp$O:        mail.h smtp.h nntp.h rfc822.h misc.h osdep.h
  129. nntpcdos$O:    mail.h smtp.h news.h nntp.h nntpcdos.h rfc822.h misc.h osdep.h
  130. pop3$O:        mail.h pop3.h rfc822.h misc.h osdep.h
  131. sm_dos$O:    mail.h misc.h osdep.h
  132. smtp$O:        mail.h smtp.h rfc822.h misc.h osdep.h
  133. rfc822$O:    mail.h rfc822.h misc.h osdep.h
  134. tenexdos$O:    mail.h tenexdos.h rfc822.h misc.h dummy.h osdep.h
  135.